<%@ page import="java.util.List" %>
<%@ page import="entity.Passage" %>
<%--
  Created by IntelliJ IDEA.
  User: zhouya
  Date: 2019/6/23/0023
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%List<Passage> list=(List<Passage>)request.getAttribute("list");%>
</head>
<body>
<form action="AdminPassageUpdateServlet" method="post">
    <%for(Passage ls:list){%>
    文章标题：<input type="text" value="<%=ls.getTitle()%>" readonly="readonly"><br>
    文章编号：<input type="text" value="<%=ls.getPassageId()%>" readonly="readonly"><br>
    栏目名称：<input type="text" value="" readonly="readonly"><br> <!-- ls.getFiledName() -->
    文章作者：<input type="text" value="" readonly="readonly"><br> <!-- ls.getName() -->
    创建日期：<input type="text" value="<%=ls.getCreateDate()%>" readonly="readonly"><br>
    文章内容：<input name="content" type="text" value="<%=ls.getContent()%>"><br>
    是否置顶：<input name="roof" type="text" value="<%=ls.isRoof()%>"><br>
    <a href="AdminAllPassageServlet?page=1">取消</a>
    <a href="AdminPassageUpdateServlet?passageId=<%=ls.getPassageId()%>">提交</a>
    <%}%>
</form>

</body>
</html>
